import Vue from 'vue'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import '@/styles/index.scss' // global css

import App from './App'
import store from './store'
import router from './router'

import '@/icons' // icon
import '@/permission' // permission control

//引入滚动条
import GeminiScrollbar from 'vue-gemini-scrollbar'


//引入  腾讯 tim
import tim from '@/tim';
import TIM from 'tim-js-sdk'

window.tim = tim
window.TIM = TIM

Vue.prototype.tim = tim
Vue.prototype.TIM = TIM

// event Bus 用于无关系组件组件的通信 , 分发事件和监听事件
Vue.prototype.$bus = new Vue()

Vue.use(ElementUI)
Vue.use(GeminiScrollbar)


Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
